
export function extendsPrototype(child, parent) {
  function CreateObj(prototype) {
    function F() {}

    F.prototype = prototype;
    return new F();
  }

  var prototype = CreateObj(parent.prototype);
  prototype.constructor = child;
  child.prototype = prototype;
}